// import com.alibaba.druid.sql.ast.SQLExpr;
// import com.alibaba.druid.sql.ast.SQLObjectImpl;
// import com.alibaba.druid.sql.visitor.SQLASTVisitor;

#include "SQLAlterTableSetLifecycle.h"
#include "../../visitor/SQLASTVisitor.h"
#include "../SQLExpr.h"

SQLExpr_ptr SQLAlterTableSetLifecycle::getLifecycle()
{
  return lifecycle;
}

void SQLAlterTableSetLifecycle::setLifecycle(SQLExpr_ptr comment)
{
  if (comment != nullptr)
  {
    comment->setParent(SharedObject(SQLAlterTableSetLifecycle));
  }
  this->lifecycle = comment;
}

// @Override
void SQLAlterTableSetLifecycle::accept0(SQLASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(SQLAlterTableSetLifecycle)))
  {
    acceptChild(visitor, lifecycle);
  }
  visitor->endVisit(SharedObject(SQLAlterTableSetLifecycle));
}
